<?php

foreach ($data as $value) { 
    echo "<div class='product_item'>"
    ."<img src='".base_url()."public/images/products/".$value->image."'>"
    .$value->name
    ."</div>";
           
}
?>
